<?php if($user->access!=0){ ?>
<div id="page_acceuil">
<table>
<caption>Serveurs up</caption>
<tr>
	<td class="title">Name</td>
	<td class="title">Ping</td>
</tr>

<?php 
	$sql_query=mysql_query("Select address,name from ".DATABASE_TABLE_SERVER." ORDER BY `name` ASC") or die(mysql_error());
	$javascript_string="";
	while ($query = mysql_fetch_array($sql_query)){
		$javascript_string = $javascript_string."\"".mise_en_forme_address($query['address'])."\",";
?>
<tr>
	<td class="column_margin"><?php print $query['name']; ?></td>
	<td id="<?php print mise_en_forme_address($query['address']); ?>"></td>
</tr>
<?php
	}
	$javascript_string = substr($javascript_string,0,-1);
?>
</table>
<script>
	var arrayserv = new Array(<?php print $javascript_string; ?>);
	ajax_multiping(arrayserv);
</script>
</div>
<?php } ?>